feat(tui): 提升 Transcript / Log Viewer 交互与底部错误提示体验#369
Conversation
- persist log viewer entries per session with 500-entry cap - allow manual transcript scrolling during runtime and add draggable 3-column scrollbar - remove activity panel, move Ctrl+L hint to footer, and add transient error toast in footer - fix waterfall height budgeting to include prompt area and show cwd in header
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
/code 解决代码中注释乱码的问题,解决review中提到的问题,将update.go view.go两个文件测试覆盖率提升至百分之九十五以上 |
完成情况已完成你在触发评论中要求的三项工作:
关键改动
测试与覆盖率
本地统计(
按 PR 新增行统计(
推送状态
|
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: creatang <165447160+creatang@users.noreply.github.com>
…0260418 fix(tui): restore input reset and raise tui patch coverage
|
/review |
|
/code 解决review中提到的问题 |
完成情况已按 review 意见完成修复并推送到当前 PR 分支: 处理结果
验证
提交
未完成项:无。 |
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: creatang <165447160+creatang@users.noreply.github.com>
…0260418 fix(tui): debounce log viewer persistence and restore utf8 comment
|
@xgopilot 给我一个能给AI用来review的提示词,先确认当前总体方案设计,再确认有没有存在风险点(诸如方案设计、模块边界等等) |
|
@xgopilot 你现在是本 PR 的代码审查器。请基于 审查目标分两阶段执行:
项目信息(必须遵守):
请按以下框架输出: A. 总体方案审查(先做)
B. 风险点审查(后做)
C. 输出约束
可选补充(给 AI 的命令提示):
完成说明
|
|
/code 修复review中提到的职责漂移,和风险问题 |
修复结果已按本次触发评论完成“职责漂移 + 风险问题”修复,并推送到当前 PR 分支: 本次改动
测试
未完成项:无。 |
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: creatang <165447160+creatang@users.noreply.github.com>
…0260418 fix(tui): move log persistence to runtime and harden viewer state
|
@xgopilot 检查TUI是否有干涉runtime读写日志行为 |
|
/code 解决review中提到的风险点 |
处理结果已按你这次触发词要求核对“review 提到的职责漂移与风险点”,当前分支
验证
提交与推送本次未产生新改动,因此未新增 commit / push。 |
|
/review |
| return | ||
| } | ||
| if current != "" && a.logPersistDirty { | ||
| a.persistLogEntriesForActiveSession() |
There was a problem hiding this comment.
setActiveSessionID 在切换前尝试落盘旧会话日志,但这里即使 persistLogEntriesForActiveSession() 失败也会继续切换到新会话。由于失败分支会调度延迟重试(并依赖 a.state.ActiveSessionID),重试时目标会话已经变成新会话,导致旧会话未落盘的数据丢失或被错误归档。建议:在切换前对旧会话做“按 sessionID+entries 快照”的显式持久化并处理失败,或在失败时中止切换并提示用户。
主要变更
purpleAccentCtrl+L Log viewer放入底部快捷提示行cwd)测试
go test ./internal/tui/core/appgo test ./internal/tui/...上述测试已通过。
风险与影响